You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > StatControlCharts Class > StatControlCharts Methods > QCPChart Method > StatControlCharts.QCPChart Method ([In] TVec, [In] TVec, [In] TVec, out double, [In] TVec, [In] TVec, double)
Dew Stats for .NET
ContentsIndexHome
PreviousUpNext
StatControlCharts.QCPChart Method ([In] TVec, [In] TVec, [In] TVec, out double, [In] TVec, [In] TVec, double)

In this case each sample can have different size. You must store sizes in SampleSize vector.

Syntax
C#
Visual Basic
public static void QCPChart([In] TVec Data, [In] TVec SampleSize, [In] TVec DrawVec, out double CL, [In] TVec UCL, [In] TVec LCL, double Confidence);
Parameters 
Description 
[In] TVec Data 
Data to be analyzed. Each value represents number of defects. 
[In] TVec SampleSize 
Sample size. Can be integer or vector. 
[In] TVec DrawVec 
Returns values to be drawn. 
out double CL 
Returns control Chart centerline. 
[In] TVec UCL 
Returns control Chart upper control limit. 
[In] TVec LCL 
Returns control Chart lower control limit. 
double Confidence 
Confidence level for upper and lower control limit. Confidence must lie in the (0,1) interval. 

An exeption is raised if Data and SampleSize length do not match.

The following code will create P chart:

using Dew.Math; using Dew.Math.Units; using Dew.Stats.Units; namespace Dew.Examples { private void Example(Dew.Stats.QCSeries QCSeries1) { Vector drawvec = new Vector(0); Matrix data = new Matrix(0,0); double cl,lcl,ucl; StatControlCharts.QCPChart(data,drawvec,out cl,out ucl,out lcl,0.05); // Setup series properties QCSeries->UCL = ucl; QCSeries->LCL = lcl; QCSeries->CL = cl; MtxVecTee.DrawValues(drawVec,QCSeries1,0,1,false); } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!